projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cca8cd2
)
GtkSearchEntry: add rtl support
author
Matthias Clasen
<mclasen@redhat.com>
Sat, 22 Sep 2012 03:41:28 +0000
(23:41 -0400)
committer
Matthias Clasen
<mclasen@redhat.com>
Sat, 22 Sep 2012 03:41:28 +0000
(23:41 -0400)
Flip the clear icon in rtl locales.
https://bugzilla.gnome.org/show_bug.cgi?id=684607
gtk/gtksearchentry.c
patch
|
blob
|
history
diff --git
a/gtk/gtksearchentry.c
b/gtk/gtksearchentry.c
index f8f54982cdca26b666812eceed8296ef4c2402b2..b729993b3cab2b3f9c2239efe895337d25ee374f 100644
(file)
--- a/
gtk/gtksearchentry.c
+++ b/
gtk/gtksearchentry.c
@@
-79,7
+79,10
@@
search_entry_changed_cb (GtkEntry *entry,
}
else
{
- icon_name = "edit-clear-symbolic";
+ if (gtk_widget_get_direction (GTK_WIDGET (entry)) == GTK_TEXT_DIR_RTL)
+ icon_name = "edit-clear-rtl-symbolic";
+ else
+ icon_name = "edit-clear-symbolic";
active = TRUE;
}